package com.hhq.demo.openfeign2.inner;

import com.hhq.common.domain.vo.CommonResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import com.hhq.demo.openfeign2.domain.req.TestReq;

/**
 * <p>Description: openfeign调用 </p>
 *
 * @author : xiaodong.yang
 * @date : 2024/1/5 16:52
 */
@FeignClient(name = "demo-openfeign")
public interface DemoOpenfeignInnserInterface {

    /**
     * test接口
     *
     * @param req
     * @return
     */
    @PostMapping("/test")
    CommonResultVO<String> test(@RequestBody TestReq req);

}
